package com.coffee.daili.service.dao;

import com.coffee.daili.api.query.DailiMerchantQuotaLogQuery;
import com.coffee.daili.service.bean.DailiMerchantQuotaLog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DailiMerchantQuotaLogDao {
	public DailiMerchantQuotaLog findById(Integer id);
	
	public DailiMerchantQuotaLog findByIdForUpdate(Integer id);
	
	public List<DailiMerchantQuotaLog> findByIds(@Param("idList")List<Integer> idList);
	
	public Integer count(@Param("param")DailiMerchantQuotaLogQuery param);
	
	public List<DailiMerchantQuotaLog> page(@Param("param")DailiMerchantQuotaLogQuery param,@Param("offset")Integer offset,@Param("rows")Integer rows);
	
	public DailiMerchantQuotaLog findFirst(@Param("param")DailiMerchantQuotaLogQuery param);
	
	public Integer insert(DailiMerchantQuotaLog param);
	
	Integer insertBatch(List<DailiMerchantQuotaLog> list);
	
	public void updateById(@Param("param")DailiMerchantQuotaLog param);
	
	public Integer deleteById(Integer id);
	
	public Integer deleteByIds(List<Integer> idList);
	
}